Skip to content

fix: fix errors and repetitive variable declarations in page.tsx (#93)#114

Merged
Debmallya-03 merged 3 commits into
Debmallya-03:mainfrom
naina-bhatnagar:fix-page-tsx
May 26, 2026
Merged

fix: fix errors and repetitive variable declarations in page.tsx (#93)#114
Debmallya-03 merged 3 commits into
Debmallya-03:mainfrom
naina-bhatnagar:fix-page-tsx

Conversation

@naina-bhatnagar
Copy link
Copy Markdown
Contributor

@naina-bhatnagar naina-bhatnagar commented May 24, 2026

Description

Fixed compilation failures and structural bugs in CodeEditor caused by duplicate code blocks and corrupted merge artifacts.

Key Changes

Resolved Redeclarations: Removed duplicate definitions of containerRef, previewRef, isMobile, and workspace drag handlers (handleDragStart, handleDragMove, etc.).

Cleaned States: Eliminated a redundant isMobile state hook.

Deduplicated Templates: Cleaned up overlapping keys and redundant objects inside the templates array.

Results

All TypeScript and linter errors are resolved.
I ran npm run dev and the wesite doesnt throw any errors now !

now the users can access the website and will not see any backend crashes

closes #93

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 24, 2026

@naina-bhatnagar is attempting to deploy a commit to the debmallya-03's projects Team on Vercel.

A member of the Team first needs to authorize it.

@netlify
Copy link
Copy Markdown

netlify Bot commented May 24, 2026

Deploy Preview for webifynet failed. Why did it fail? →

Name Link
🔨 Latest commit a1892fa
🔍 Latest deploy log https://app.netlify.com/projects/webifynet/deploys/6a1514c4fd384c0008f740a4

@Debmallya-03 Debmallya-03 merged commit f56bb0e into Debmallya-03:main May 26, 2026
1 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix: Fix duplicate declarations, undefined isMobile, and JSX attribute errors in page.tsx

2 participants